﻿using System;
using System.Collections.Generic;

namespace Medianamik.Tests.Unit
{
    public static class Extensions
    {
        public static IEnumerable<T> Times<T>(this int times, Func<T> func) 
        {
            for (int i = 0; i < times; i++)
            {
                yield return func();
            }
        }
    }
}
